<?php $this->pageTitle = $groupName; ?>
<?php
/* @var $this GroupsController */
/* @var $model Groups */
?>
<div class="c_body">	
	<div class="tab" id="u_search_tab1_">	
		<div class="u_cat also1">
			<div class="u_cat_head_strip"></div>
			<div class="u_cat_head">
				<span><?php echo CHtml::encode($model->user->full_name); ?></span>
			</div>
			<div class="cat_head">
				<div class="cat_head_strip"></div>
				<div class="cat_head_h t">
					<a class="cat_head_h_edit" href="<?php echo Yii::app()->createUrl('groups/view',array('group'=>$group));?>">
						назад к <?php echo CHtml::encode($groupName); ?>
					</a>
				</div>
			</div>						

			<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'groups-urls-form',
				'enableAjaxValidation'=>false,
				'htmlOptions'=>array('rel' =>Yii::app()->createUrl('groups/settingsMember', array( 'group'=>Yii::app()->request->getParam('group') ))),
			)); ?>

				<?php echo $form->errorSummary($model); ?>

				<div class="checkbox_row">
					<?php $class = ($model->writecomment) ? 'checkbox_block checked' : 'checkbox_block' ; ?>
					<div class="<?php echo $class; ?>">
						<div></div>
						<?php echo $form->checkBox($model,'writecomment',array('id'=>'checkbox_1', 'class'=>'checkbox_item')); ?>
						<label for="checkbox_1"><?php echo $form->labelEx($model,'writecomment'); ?></label>
						<?php echo $form->error($model,'writecomment'); ?>
					</div>
				</div>
				<div class="checkbox_row">
					<?php $class = ($model->ruler) ? 'checkbox_block checked' : 'checkbox_block' ; ?>
					<div class="<?php echo $class; ?>">
						<div></div>
						<?php echo $form->checkBox($model,'ruler',array('id'=>'checkbox_1', 'class'=>'checkbox_item')); ?>
						<label for="checkbox_1"><?php echo $form->labelEx($model,'ruler'); ?></label>
						<?php echo $form->error($model,'ruler'); ?>
					</div>

					<?php $class = ($model->admin) ? 'checkbox_block checked' : 'checkbox_block' ; ?>
					<div class="<?php echo $class; ?>">
						<div></div>
						<?php echo $form->checkBox($model,'admin',array('id'=>'checkbox_2','class'=>'checkbox_item')); ?>
						<label for="checkbox_2"><?php echo $form->labelEx($model,'admin'); ?></label>
						<?php echo $form->error($model,'admin'); ?>
					</div>
				</div>
				<table class="flds_form">
						<tr>
							<td class="flds_form_l">
								<?php echo $form->labelEx($model,'position'); ?>
							</td>
							<td class="flds_form_r">
								<div class="flds_border">
									<div class="flds_border_inside">
										<?php echo $form->textField($model,'position',array('class'=>'settings_fld', 'size'=>60,'maxlength'=>255)); ?>
									</div>
									<?php echo $form->error($model,'position'); ?>
								</div>
							</td>
						</tr>
						
				</table>
				<?php echo CHtml::submitButton($model->isNewRecord ? 'Создать' : 'Сохранить', array('class'=>'green_btn tac')); ?>
			<?php $this->endWidget(); ?>
			<div class="clear"></div>
		</div>
	</div>
	<div class="clear"></div>
</div>